import request from '@/utils/request'

// POST - forData传参，传文件,头部参数请参考访问规则
// 参数:  file
export function uploadImage(data) {
  return request({
    url: '/common/interface/upload_img',
    method: 'POST',
    data,
  })
}

export function uploadImages(data) {
  return request({
    url: '/common/interface/upload_imges',
    method: 'POST',
    data,
  })
}

export function Login(data) {
  return request({
    url: '/ZLBLoginInfo/Login',
    method: 'POST',
    formData: true,
    data,
  })
}
// 查询项目事项通知接口
export function getMatterNotice(data) {
  return request({
    url: '/ProjectCenter/getMatterNotice',
    method: 'POST',
    formData: true,
    data,
  })
}
// 查询用户问题通知接口
export function getProblemNotification(data) {
  return request({
    url: '/ProjectCenter/getProblemNotification',
    method: 'POST',
    formData: true,
    data,
  })
}
// 修改问题已读状态接口
export function updateProblemNotification(data) {
  return request({
    url: '/ProjectCenter/updateProblemNotification',
    method: 'POST',
    data,
  })
}
// 查询用户信息
export function GetUserInfo(data) {
  return request({
    url: '/ZLBLoginInfo/GetUserInfo',
    method: 'POST',
    formData: true,
    data,
  })
}
// 修改用户信息接口
export function updateUserInfo(data) {
  return request({
    url: '/ZLBLoginInfo/updateUserInfo',
    method: 'POST',
    data,
  })
}
